package pers.sports.service.impl;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import pers.sports.dao.CollegeDao;
import pers.sports.service.CollegeService;

/**
 * 学院查询
 *
 * @datetime 2021/4/27 22:15
 */
@Service
public class CollegeServiceImpl implements CollegeService {

    private final CollegeDao collegeDao;

    public CollegeServiceImpl(CollegeDao collegeDao) {
        this.collegeDao = collegeDao;
    }

    @Override
    @Transactional(readOnly = true)
    public String findNameById(String id) {
        return collegeDao.findNameById(id);
    }
}
